<template>
  <div>
    <Button type="primary" size="small" @click="toRouterName">查看</Button>
  </div>
</template>

<script>
  export default {
    name: 'ButtonShow',
    props: {
      rName: null,
      Project_id: null
    },
    data() {
      return {
        routerName: ""
      }
    },
    created() {
      this.routerName = this.rName
    },
    methods: {
      toRouterName() {
        this.$router.push({
          name: this.routerName,
          query: {
            Project_id:this.Project_id
          }
        })
      }
    }
  }
</script>

<style scoped>

</style>